package ${package.Controller};
import ${package.Service}.${table.serviceImplName};
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
<#if restControllerStyle>
import org.springframework.web.bind.annotation.RestController;
<#else>
import org.springframework.stereotype.Controller;
</#if>
<#if superControllerClassPackage??>
import ${superControllerClassPackage};
</#if>

/**
 *  ${table.comment} 前端控制器
 * @author ${author}
 * @since   ${date}
 */
<#if restControllerStyle>
@RestController
<#else>
@Controller
</#if>
@RequestMapping("<#if package.app??>/${package.app}</#if>/${table.entityPath}")
<#if superControllerClass??>
public class ${table.controllerName} extends ${superControllerClass} {
	@Autowired
	private ${table.serviceImplName} ${table.serviceImplName_};
}
<#else>
public class ${table.controllerName} {
}
</#if>
